<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 
	/*
	* @Package ui.php
	* @author John Hamelink
	* @link http://www.syntaxmonster.net
	* @version 1.0.0
	* @since Version 1.0.0
	*/
class Ui {
	var $CI;
	
	function __construct(  ) {
	}
	function Ui(  ) {
		self::__construct(  );
	}
	/*makeButton
	* Make a button out of the input content
	* @param input, alignment
	*/
	function makeButton($input,$alignment='floatleft'){
		return '<span class="button '. $alignment . '">'.$input.'</span>';
	}
	/*makeOption
	* Surround the content in an option span for use with the dialog function.
	* @param input, floatright
	*/
	function makeOption($input,$floatright=0){
		$return = '<span class="option';
		if ($floatright == 1){
			$return .= ' floatright';
		}
		$return .= '">'.$input.'</span>';
		return $return;
	}
	/*makeDialog
	*  Creates a dialog box filled with the inputted content.
	*  @param heading, input, alignment
	*/
	function makeDialog($heading,$input, $alignment='floatleft'){
		return '<div class="dialog '.$alignment.'">
						<div class="heading">
							<div class="top">'
								.$heading
							.'</div>
						</div>
						<div class="dialogcontent">'
							.$input.
						'</div>
					</div>';
	}
}
